package com.cssl.serice.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cssl.dao.RewardsMapper;
import com.cssl.pojo.Rewards;
import com.cssl.serice.RewardsSerice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RewardsImpl extends ServiceImpl<RewardsMapper, Rewards> implements RewardsSerice {

    @Resource
    private  RewardsMapper rewardsMapper;
    @Override
    public IPage<Rewards> rewardsquery(IPage<Rewards> page, QueryWrapper<Rewards> ew) {
        return rewardsMapper.rewardsquery(page,ew);
    }

    @Override
    public List<Rewards> rewardsselect(QueryWrapper<Rewards> ew) {
        return rewardsMapper.rewardsselect(ew);
    }
}
